﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using SkynetCE.Foundation.Model;

namespace SkynetCE.Foundation.Services.SkynetService
{
    public class SkynetService : ISkynetService
    {
        public const string ConsUrl = "http://devmobile/Skynet.WebHost/SkynetLibraryService.svc";
        public List<ExamCategory> GetCategories()
        {
            var result = new List<ExamCategory>();  
            var service = new SkynetServiceProxy.SkynetLibraryService();
            service.Url = ConsUrl;
            var Categories = service.FindExamCategories(SkynetCE.Foundation.SkynetServiceProxy.DCExamFindCategoryOperation.FindAll, true);
            foreach (var item in Categories)
            {
                var cat = Services.Translator.TranslatorService.ExamCategories.ServiceToBusiness(item); 
                result.Add(cat);                 
            }
            return result;
        }


        public List<Exam> GetExams()
        {
            var result = new List<Exam>();
                
            return result;
        }


        public void RegisterExam(Exam item)
        {
            throw new NotImplementedException();
        }

    }
}
